{"version":3,"file":"dataloader.min.js","sources":["dataloader.js"],"names":["AmCharts","translations","dataLoader","addInitHandler","chart","undefined","isObject","version","split","Number","l","remaining","percentLoaded","defaults","async","format","showErrors","showCurtain","noStyles","reload","timestamp","delimiter","skip","skipEmpty","emptyAs","useColumnNames","init","progress","reverse","reloading","complete","error","numberFields","headers","loadData","type","setTimeout","panelsSettings","startDuration","x","dataSets","length","ds","url","callFunction","dataProvider","applyDefaults","loadFile","eventDataLoader","events","arrows","holder","options","providerKey","_progress","percent","totalPercent","fileCount","hasOwnProperty","globalPercent","Math","round","call","this","response","raiseError","__","language","toLowerCase","parseJSON","postprocess","load","parseCSV","validateNow","removeCurtain","addListener","event","periodSelector","setDefaultPeriod","dataUpdated","pop","validateData","panels","animateAgain","timeout","clearTimeout","data","postProcess","isFunction","e","obj","setDefault","key","value","msg","console","log","curtain","document","createElement","setAttribute","div","id","className","style","position","top","left","width","realWidth","divRealWidth","height","realHeight","divRealHeight","textAlign","display","fontSize","background","innerHTML","containerDiv","appendChild","removeChild","func","param1","param2","param3","handler","request","window","XMLHttpRequest","ActiveXObject","open","timestampUrl","i","header","setRequestHeader","onprogress","loaded","total","onreadystatechange","readyState","status","responseText","send","JSON","parse","eval","CSVToArray","numbers","res","cols","col","shift","replace","row","dataPoint","indexOf","push","strData","strDelimiter","objPattern","RegExp","arrData","arrMatches","exec","strMatchedDelimiter","strMatchedValue","p","Date","getTime","join"],"mappings":"AAqCAA,SAASC,aAAaC,aAKtBF,UAASG,eAAgB,SAAUC,GAKjC,GAAKC,YAAcD,EAAMF,aAAeI,EAAUF,EAAMF,YACtDE,EAAMF,aAMR,IAAIK,GAAUH,EAAMG,QAAQC,MAAO,IACnC,IAAOC,OAAQF,EAAS,IAAQ,GAAS,IAAME,OAAQF,EAAS,KAAWE,OAAQF,EAAS,IAAQ,GAClG,MAKF,IAAIG,GAAIN,EAAMF,UACdQ,GAAEC,UAAY,CACdD,GAAEE,gBAKF,IAAIC,IACFC,MAAS,KACTC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